package com.stock.DO;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ColumnWidth(20)//列宽
@ContentRowHeight(15)//行高
public class StockExcelDomain {
    @ExcelProperty(value = "编号", index = 0)
    private String num;
    @ExcelProperty(value = "股票代码", index = 1)
    private String code;
    @ExcelProperty(value = "股票名称", index = 2)
    private Long tradeAmt;
    @ExcelProperty(value = "成交量", index = 3)
    private BigDecimal preClosePrice;
    @ExcelProperty(value = "前收盘价", index = 4)
    private BigDecimal amplitude;
    @ExcelProperty(value = "交易额", index = 5)
    private BigDecimal tradeVol;
    @ExcelProperty(value = "涨幅", index = 6)
    private BigDecimal increase;
    @ExcelProperty(value = "涨跌值", index = 7)
    private BigDecimal upDown;
    @ExcelProperty(value = "当前价格", index = 8)
    private BigDecimal tradePrice;
    @ExcelProperty(value = "日期", index = 9)
    @JsonFormat(pattern = "yyyyMMdd")
    private String curDate;
}
